package com.gitee.wsl.ext.coroutines

import kotlinx.atomicfu.locks.SynchronizedObject
import kotlinx.atomicfu.locks.synchronized

fun <R> SynchronizedObject.synchronize(block: () -> R): R = synchronized(this,block)